package com.timoon.manager.page;

import java.util.HashMap;
import java.util.Map;

import org.apache.wicket.markup.html.panel.Panel;

import com.googlecode.wicket.jquery.ui.Options;
import com.timoon.component.behavior.bootstrap.AbstractBootStrapBehavior;
import com.timoon.component.panel.jlayout.JLayouterPanel;
import com.timoon.manager.auth.BaseAuthPage;
import com.timoon.manager.panel.MenuPanel;
import com.timoon.sample.web.form.Examples;

public class HomePage extends BaseAuthPage {

	public HomePage() {
		// TODO Auto-generated constructor stub
		
		//引用bootstrap
		this.add(new AbstractBootStrapBehavior("#ddddddd", "click", new Options()));
		
		Map<String, Panel> panelMap=new HashMap<String, Panel>();
		
		panelMap.put(JLayouterPanel.WEST_PANEL, new MenuPanel(JLayouterPanel.WEST_PANEL));
		panelMap.put(JLayouterPanel.CENTER_PANEL, new Examples(JLayouterPanel.CENTER_PANEL));
		
		JLayouterPanel layouter=new JLayouterPanel("wk_layout", null, panelMap);
		
		add(layouter);
		
		this.getSession().setAttribute("layouter", layouter);
	}
}
